<script type="text/javascript">
$(document).ready(function(){
	var validator = jQuery("#loginform").validate({
		rules: {
			username:{
				required:true,
				minlength:4,
				maxlength:10
				}, 
			password: "required"
		},
		messages: {
			username: "请输入您的用户名",
			password: "请输入您的密码"
		},
		// the errorPlacement has to take the layout into account
		errorPlacement: function(error, element) {
			error.insertAfter(element.parent().find('label:first'));
		},
		// set new class to error-labels to indicate valid fields
		success: function(label) {
			// set &nbsp; as text for IE
			label.html("&nbsp;").addClass("ok");
		}
	});
});

</script>
    <!-- Page title -->
    <div id="pagetitle">
		
	</div>
    <!-- End of Page title -->
    <!-- Page content -->
    <div id="page">
    	<div id="login">
        <p><h3>登录业务管理平台</h3></p>
        <form id="loginform" method="post" action="<?php echo site_url('user/login')?>">

						<p>
							<label class="required" for="username">用户名:</label><br/>
							<input type="text" id="username" class="full"  value="" name="username"/>
						</p>
						
						<p>
							<label class="required" for="password">密码:</label><br/>
							<input type="password" id="password" class="full"  value="" name="password"/>
						</p>
						
						<p>
							<input type="checkbox" id="remember"  value="1" name="remember"/>
记住我
<label class="choice" for="remember">?</label>
						</p>
						
						<p>
							<input type="submit" class="btn btn-green big" value="登录"/>
					  </p>
						<div class="clear">&nbsp;</div>

					</form>
					
					
        </div>
    </div>
    <!-- End of Page content -->